package com.yanq.liancar.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.vondear.rxtool.RxSPTool;
import com.yanq.liancar.R;
import com.yanq.liancar.activity.base.BaseToolbarActivity;
import com.yanq.liancar.util.Utils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SmallCQueryActivity extends BaseToolbarActivity {
    @BindView(R.id.et_car_num)
    EditText etCarNum;
    @BindView(R.id.et_frame_num)
    EditText etFrameNum;
    @BindView(R.id.et_engine_num)
    EditText etEngineNum;
    @BindView(R.id.tv_city)
    TextView tvCity;
    @BindView(R.id.rl_city)
    RelativeLayout rlCity;
    @BindView(R.id.tv_cartype)
    TextView tvCartype;
    @BindView(R.id.rl_cartype)
    RelativeLayout rlCartype;
    @BindView(R.id.tv_selectAddress)
    TextView tv_selectAddress;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_smallcquery);
        Utils.setStatusBar(this, true,false);
        ButterKnife.bind(this);
        mTvTitle.setText("线上年检");

    }

    @Override
    protected void onResume() {
        super.onResume();
        tv_selectAddress.setText(RxSPTool.getString(this,"SelectAddressTitle"));
    }

    @OnClick({R.id.rl_city, R.id.rl_cartype,R.id.tv_selectAddress})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.rl_city:
                break;
            case R.id.rl_cartype:
                break;
            case R.id.tv_selectAddress:
                startActivity(new Intent(getApplicationContext(), SelectAddressActivity.class));
                break;
        }
    }
}
